package com.entfrm.biz.system.controller;

import com.entfrm.base.api.R;
import com.entfrm.biz.system.entity.TPay;
import com.entfrm.biz.system.service.PayService;
import lombok.AllArgsConstructor;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;

import java.util.List;

@Controller
@AllArgsConstructor
public class PayController {
    @Autowired
    private PayService payService;

    /**
     * 佣金排行
     * @return
     */
    public R orderByCom(){
        List<TPay> tPays =payService.orderByCom();
        return R.ok(tPays,tPays.size());
    }
}
